<ul>
<?php foreach ($products as $prd):?>
    <li>
        <a href="<?php echo $this->createUrl("site/redirect",array('id'=>$prd->id)); ?>"><?php echo CHtml::encode($prd->title);?></a>
    </li>
<?php endforeach; ?>
</ul>